<?php
/* 
 * @fileName       : cropImage.php
 * @Copyright      : (c) 2012 Chienlv.
 * @software       : is developed by the technical team of Hung Viet .
 * @Blog           : levanchien.info.
 * @Yahoo          : levanchien_info.
 * @Email          : admin@levanchien.info.
 * @Mobile         : 0989092938.
 * @Description of : cropImage
 */

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="<?php echo Yii::app()->language;?>" />
	<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW" />
    <script type="text/javascript">baseUrl = '<?php echo Yii::app()->request->baseUrl;?>';</script>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <?php
		$YII_CSRF_TOKEN = "";
		if(Yii::app()->request->enableCsrfValidation) $YII_CSRF_TOKEN = Yii::app()->request->getCsrfToken();

        $cs=Yii::app()->clientScript;
        $cs->registerCoreScript('jquery');
        $cs->registerScriptFile(Yii::app()->request->baseUrl.'/js/admin/admin.js',CClientScript::POS_END);
		$cs->registerCssFile(Yii::app()->request->baseUrl."/css/admin/cropImages.css");
        $cs->registerScript('form','
                var LANG = $.parseJSON(\''.json_encode(include _APP_PATH_.'/protected/messages/'.Yii::app()->language."/JS-ADMIN.php").'\');
                var YII_CSRF_TOKEN = "'.$YII_CSRF_TOKEN.'";
                var basePath="'.Yii::app()->request->baseUrl.'/admin.php"
                var baseUrl="'.Yii::app()->request->baseUrl.'"',
            CClientScript::POS_HEAD
        );
    ?>
</head>
<body>
    <?php echo $content; ?>
</body>
</html>